home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 2: CDPD 1
/
Almathera Ten on Ten - Disc 2: CDPD 1.iso
/
pd
/
276-300
/
297
/
devkit
/
examples
/
autocommands
next >
Wrap
Text File
|
1995-03-14
|
2KB
|
43 lines
The following are some examples of the kinds of "Auto:" commands that are
likely to be useful when using Aztec C. Remember that any DOS command is
acceptable as an "Auto:" command, provided you give its full path or
provided it is in the current directory (COMP:) or the C: directory.
Note that the programs found in the Sources directory of the DevKit contain
"Auto:" commands that allow them to be compiled by Aztec C. You may wish
to refer to these actual examples.
1. Regular Compilation (errors sent to file AztecC.err):
Auto: cc -q <path><file>
Auto: ln <path><file>.o -lc -o <path><file>
2. As #1, but with .o file sent to RAM: disk:
Auto: cc -q -o RAM:<file>.o <path><file>
Auto: ln RAM:<file>.o -lc -o <path><file>
3. As #2, but using precompiled headers (RAM:Includes.pre)
Auto: cc -q +IRAM:Includes.pre -o RAM:<file>.o <path><file>
Auto: ln RAM:<file>.o -lc -o <path><file>
4. As #2, but include source debugging information.
Auto: cc -q -n -o RAM:<file>.o <path><file>
Auto: ln RAM:<file>.o -lc -g -o <path><file>
5. As #2, but link with MeToo.o (to be found in same directory).
Auto: cc -q -o RAM:<file>.o <path><file>
Auto: ln RAM:<file>.o <path>MeToo.o -lc -o <path><file>
6. As #2, but assign "src:" to the current path, so we can #include
a header located in the same directory.
Auto: assign src: <path>
Auto: cc -q -o RAM:<file>.o <path><file>
Auto: ln RAM:<file>.o -lc -o <path><file>
...
#include "src:MyIncludes.h"
7. If you own and use make, then the compiler options will be in
a makefile (say you place the makefile in the same directory as your
source). The "Auto:" command would then be:
Auto: make -f <path>makefile <path><file>